﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _05PointInCircle
{
    class _06PointInCircle
    {
        static void Main(string[] args)
        {
            
            Console.WriteLine("This is a program that will check if a given point\n(x, y) is within the circle K((0,0), 5)."); 
            // Assuming (0, 0) as the center and a radius of 5, like Q8 form Ch3 from the textbook - Introduction to C#.            
            Console.WriteLine("Enter value for x:");
            double x = double.Parse(Console.ReadLine());
            Console.WriteLine("Enter value for y:");
            double y = double.Parse(Console.ReadLine());
            double hypotenuse = Math.Sqrt(Math.Pow(x, 2) + Math.Pow(y, 2));
            bool check = hypotenuse < 5;
            Console.WriteLine(check ? "The point is within the circle." : "The point is outside the circle or on the edge of the circle.");

        }
    }
}
